package com.ruoyi.model.apply;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 报名信息对象 web_apply
 *
 * @author 张怀秋
 * @date 2024-04-17
 */
@Data
@TableName("web_apply")
@AllArgsConstructor
@NoArgsConstructor
public class Apply extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 报名记录id
     */
    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 用户id
     */
    @Excel(name = "用户id")
    private String userId;

    @TableField(exist = false)
    private String userName;

    @TableField(exist = false)
    private String activitysName;

    /**
     * json用户报名信息
     */
    @Excel(name = "json用户报名信息")
    private String content;

    /**
     * 活动/竞赛/id
     */
    @Excel(name = "活动/竞赛/id")
    private String activityId;

    /**
     * 区分是活动还是竞赛类型
     */
    @Excel(name = "区分是活动还是竞赛类型")
    private String type;

    /**
     * 报名时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "报名时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date enrollTime;

    /**
     * 逻辑删除
     */
    @Excel(name = "逻辑删除")
    @TableLogic
    private String isDel;

    private Integer status;

}
